package com.imooc.oauth2.server.config;

/**
 * \* @author: bear
 * \* Date: 2021-07-11-15:14
 * \* describe:
 */

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

/**
 * 客户端配置类
 */
@Component
@ConfigurationProperties(prefix = "client.oauth2")
@Data
public class ClientOAuth2DataConfiguration {

	// 客户端标识 ID
	private String clientId;

	// 客户端安全码
	private String secret;

	// 授权类型
	private String[] grantTypes;

	// token有效期
	private int tokenValidityTime;

	// refresh-token有效期
	private int refreshTokenValidityTime;

	// 客户端访问范围
	private String[] scopes;
}
